
import OperTable from './operTable'
import OperNew from './operNew'

import { useState } from 'react'
const Operation_log = () => {
  //显示哪个组件，1是表格，2是新增
  const [state, setState] = useState(1)
  let com
  if (state == 1) {
    com = <OperTable setState={setState}></OperTable>
  }
  else {
    com = <OperNew setState={setState}></OperNew>
  }
  return <>
    {com}
  </>

};

export default Operation_log;

